Smartphone-based automated treatment for smoking cessation